package org.microdream.easy.deploy.service;

import ice.server.comm.BaseServiceImpl;
import ice.server.comm.CommRepository;
import org.microdream.easy.deploy.dao.DUserOrgRepository;
import org.microdream.easy.deploy.po.DUserOrg;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class DUserOrgService extends BaseServiceImpl<DUserOrg, Integer> {

    @Resource
    private DUserOrgRepository dUserOrgRepository;

    @Override
    public CommRepository<DUserOrg, Integer> getRepository() {

        return dUserOrgRepository;
    }

    @Override
    public Integer getIdenty(DUserOrg t) {
        return t.getId();
    }
}
